package com.len.service.impl;

import com.len.base.BaseMapper;
import com.len.base.impl.BaseServiceImpl;
import com.len.entity.TQuotationSample;
import com.len.mapper.QuotationSampleMapper;
import com.len.service.QuotationSampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class QuotationSampleServiceImpl extends BaseServiceImpl<TQuotationSample,String> implements
        QuotationSampleService {

    @Autowired
    private QuotationSampleMapper quotationSampleMapper;
    @Override
    public BaseMapper<TQuotationSample, String> getMappser() {
        return quotationSampleMapper;
    }

    public void delAllByOrderNo(String orderNo){
        quotationSampleMapper.delAllByOrderNo(orderNo);
    }

    public List<TQuotationSample> selectAllByOrderNo(String orderNo){
        return quotationSampleMapper.selectAllByOrderNo(orderNo);
    }
}
